<?php
/* @var $this ClientesController */
/* @var $model Clientes */
/* @var $form CActiveForm */
?>

<script type="text/javascript">
$(document).ready(function(){
	$('.search-button').change(function(){
	$("#txtSeleccion").val($('#numtexts').val());
	switch(($('#numtexts').val()))
	{
		case 1:
			alert("hola");
			break;
		case 2:
			//document.getElementById('#consulta2').style.display = "block";
			break;
		case 3:
			div = document.getElementById('consulta1');
			div.style.display ="";
			break;
	}
});
});
</script>

<div id="consulta1" style="display:none">
<input type="text" id="txtSeleccion" name="txtSeleccion" readonly />
	<div class="row buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>
</div><!-- search-form -->